package com.major.linkedlist;

public class DoubleLinkListMain {
    public static void main(String[] args) {
        HeroNode2 hero1 = new HeroNode2(1, "宋江", "及时雨");
        HeroNode2 hero2 = new HeroNode2(2, "oujingwei", "区景伟");
        HeroNode2 hero3 = new HeroNode2(3, "limingyang", "李明扬");
        HeroNode2 hero4 = new HeroNode2(4, "4", "4");
        HeroNode2 updateHero2 = new HeroNode2(4, "lihongrui", "李洪睿");

        DoubleLinkHero linkHero = new DoubleLinkHero();
        linkHero.addHeroByOrder(hero1);
        linkHero.addHeroByOrder(hero3);
        linkHero.addHeroByOrder(hero2);
        linkHero.addHeroByOrder(hero4);
        //linkHero.showHero();
        //linkHero.update(updateHero2);
        //linkHero.showHero();
        //linkHero.delete(1);
        linkHero.showHero();


    }
}

